<?php require __DIR__ . '/../inc_header.tpl.php';?>

        
<span class="layui-breadcrumb">
    <a href="<?php echo url(['platform','platform','index']);?>">控制台</a>
    <a href="">微信公众号</a>
    <a><cite>设置</cite></a>
</span>

<div class="layui-tab layui-tab-brief">
  <ul class="layui-tab-title">
    <li><a href="<?php echo url(['platform','wechat','wxweb']);?>">微信公众号</a></li>
    <li ><a href="<?php echo url(['platform','wechat','menu']);?>">微信公众号菜单</a></li>
    <li class="layui-this"><a href="<?php echo url(['platform','wechat','wxapp']);?>">微信小程序</a></li>
    <li><a href="<?php echo url(['platform','wechat','pay']);?>">微信支付</a></li>
  </ul>
</div>    
<br>


<form class="layui-form" action="<?php echo url(['platform','wechat','wxapp']);?>" method="post" style="max-width: 900px;margin: 10px auto;">

    <input type="hidden" name="uniacid" value="<?php echo $ret_config['uniacid'];?>" />

    <p style="padding-bottom:20px;color: #FF5722">
        公众平台官网登录之后，找到“开发”->“开发管理”->“开发设置”菜单栏。
    </p>
  
    <div class="layui-form-item">
        <label class="layui-form-label">微信小程序名称：</label>
        <div class="layui-input-block">
            <input type="text" name="name" placeholder="请输入微信公众号名称" class="layui-input" value="<?php echo $ret_config['name'];?>"
                    lay-verType="tips" lay-verify="required" required/>
            <div style="color:#bbb">维护标识，自行命名</div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">AppID(小程序ID)：</label>
        <div class="layui-input-block">
            <input type="text" name="appid" placeholder="请输入AppID" class="layui-input" value="<?php echo $ret_config['appid'];?>" />
            <div style="color:#bbb">请填写微信小程序后台的AppID</div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">AppSecret(小程序密钥)：</label>
        <div class="layui-input-block">
            <input type="text" name="appsecret" class="layui-input" value="<?php echo $ret_config['appsecret'];?>" />
            <div style="color:#bbb">请填写微信小程序后台的AppSecret</div>
        </div>
    </div>

    <!-- <hr>
    <p  style="padding:20px;color: #FF5722">
        将以下信息填入“微信小程序管理”->“开发”->“开发管理”->“开发设置”->“服务器域名”对应输入框：
    </p>
    <div class="layui-form-item">
        <label class="layui-form-label">服务器域名：</label>
        <div class="layui-input-block" style="color:#1E9FFF;font-weight:bold">
            <?php echo _APP_URL_; ?>
        </div>
    </div> -->


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" type="submit">&emsp;保存&emsp;</button>
        </div>
    </div>

</form>
<?php require __DIR__ . '/../inc_footer.tpl.php';?>

<style>
.layui-form-label{width: 240px;} /* 默认 width80 + padding 15 x 2  = 110px */
.layui-input-block{margin-left:270px; line-height: 36px;} /* 默认110px */
</style>